@extends('layout.admin.index')
@section('content')
<div class="panel admin-panel">
	<div class="panel-head" id="add">
		<strong><span class="icon-pencil-square-o"></span>增加内容</strong>
	</div>

	<form method="post" class="form-x" action="/admin/photo/insert" enctype="multipart/form-data">  
		{{ csrf_field() }}
		<div class="form-group">
			<div class="label">
				<label>超链接：</label>
			</div>
			<div class="field">
				<input type="text" class="input w50" value="" name="photo_link" data-validate="required:请输入标题"  required />
				<div class="tips"></div>
			</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label>图片：</label>
			</div>
			<div class="field">
				<input type="file"  value="+ 浏览上传" name="photo_name" style="float:left;" required>
				<div class="tipss">推荐图片尺寸：1020*455;不超过2M;格式jpg,png,gif</div>
			</div>
		</div>     
		<div class="form-group">
			<div class="label">
				<label>开关：</label>
				</div>
			<div class="field" style="padding-top:8px;"> 
				开启 <input name="photo_status" value="1" id="ishome"  type="radio" checked/>
				禁用 <input name="photo_status" value="2" id="isvouch"  type="radio" />

			</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label>描述：</label>
			</div>
			<div class="field">
				<textarea class="input" name="photo_description" style=" height:90px;"></textarea>
				<div class="tips"></div>
			</div>
		</div>     
		<div class="form-group">
			<div class="label">
				<label></label>
			</div>
			<div class="field">
				<button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
			</div>
		</div>
	</form>
</div>

@endsection